// 登录相关接口
import request from '@utils/request'

// 获取ai图片
const getImgs = (data) => {
  return request({
    url: '/aiImg/find',
    method: 'get',
    data: data || {}
  })
}

// 添加ai图片
const addImgs = (data) => {
  return request({
    url: '/aiImg/add',
    method: 'post',
    data: data || {}
  })
}

// 更新ai图片
const updateImgs = (data) => {
  return request({
    url: '/aiImg/update',
    method: 'post',
    data: data || {}
  })
}

// 删除ai图片
const removeImgs = (data) => {
  return request({
    url: '/aiImg/remove',
    method: 'get',
    data: data || {}
  })
}

export { getImgs, addImgs, updateImgs, removeImgs }
